package com.guys8.cemsbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (User)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class User extends Model<User> {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;
    private String schoolId;
    private String userName;
    private String userSex;
    //学院
    private String userAcademy;
    //专业
    private String userMajor;
    //职位--电话号
    private String userPosts;
    //宿舍或居住地址
    private String userAddress;
    //最近一次核酸检测
    private Integer lastNacid;
    //最近一次健康信息申报
    private Integer lastHealthid;
    @TableLogic
    private Integer isDelete;
    //预设置头像 1,2,3
    private Integer ext1;
    private String ext2;

    public User(){}
    public User(String schoolId){
        setSchoolId(schoolId);
        setExt1(1);
        setIsDelete(0);
    }
}

